<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>英码科技公司::后台管理</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="bookmark" href="/favicon.ico"  />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<link href="../css/round2.css" rel="stylesheet" type="text/css" />
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
	$(function(){
		$("a._delArticle").click(function(evt){
			if(!confirm("您真的要删除该文章吗？")) evt.preventDefault();
		});
		$("#showFilter").toggle(function(){
			$("div.artfilter").find("form").slideUp("3");
			$("#showFilter").attr("src","../images/down.gif");
		},function(){
			$("div.artfilter").find("form").slideDown("3");
			$("#showFilter").attr("src","../images/up.gif");
		});
	});
</script>
</head>
<body>
{#include_php file='../home/head.php' once=true#}
<!-- start page -->
<div id="page">
	<div style="margin:0 auto; width:940px;">
    	<div class="roundedcornr_box_143188"  style="margin-top:20px;">
           <div class="roundedcornr_top_143188"><div></div></div>
              <div class="roundedcornr_content_143188" style="color:white;">
              	<div class="artfilter">
                	<div style="text-align:right"><img style="cursor:pointer;" id="showFilter" src="../images/up.gif" /></div>
                	<form action="" method="get">
                    	<span style="font-size:13px;">请选择文章类型：</span>
                    	<select name="category">
                        	<!--{foreach from=$cats item=i}-->
                            <!--{if $i.c_id==$c_id}-->
                        	<option selected="selected" value="{#$i.c_id#}">{#$i.cat_name#}</option>
                            <!--{else}-->
                            <option value="{#$i.c_id#}">{#$i.cat_name#}</option>
                            <!--{/if}-->                            
                            <!--{/foreach}-->
                        </select>
                        <input type="submit" value="确 定" />
                    </form>
                </div>
              	<ul class="modify">
                	<!--{foreach from=$articles item=i}-->
                	<li>
                    	<div class="cat">{#$i.cat_name#}</div>
                        <div class="title">{#$i.a_title#}</div>
                        <div class="action"><a href="../admin/addnews.php">添加</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../admin/modify.php?a_id={#$i.a_id#}">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="_delArticle" href="../admin/delarticle.php?a_id={#$i.a_id#}">删除</a></div>
                      <div style="clear:both;"></div>
                    </li>
                    <!--{foreachelse}-->
                    	<div class="msgerr">目前还没有数据,<a href="../admin/addnews.php">点这里开始添加</a></div>
                    <!--{/foreach}-->
                </ul>
              </div>
           <div class="roundedcornr_bottom_143188"><div></div></div>
        </div>
	</div>
    <div style="height:20px;"></div>
</div>
<!-- end page -->
{#include_php file='../home/footer.php' once=true#}
</body>
</html>